<?php
/*
 * This file is part of SoftSite.
 *
 * (c) 2012 Steve Tredinnick
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 *
 *
 * @package softsite
 * @author  Steve Tredinnick <steve.tredinnick@gmail.com>
 */

namespace Lib\Forms\Elements;

use Lib\Forms\Elements\InputElement;

class WeekElement extends InputElement
{
    public function __construct($name)
    {
        parent::__construct();
        $this->SetType("checkbox");
        $this->SetName($name);
    }

    /**
     *
     * The max attribute specifies the maximum value for an <input> element.
     * Tip: Use the max attribute together with the min attribute to create a range of legal values.
     * Note: The max and min attributes works with the following input types: number, range, date, datetime, datetime-local, month, time and week.
     *
     * @param string $max number or date representing the max value of the control
     */
    public function SetMax($max)
    {
        parent::SetMax($max);
    }

    /**
     * The min attribute specifies the minimum value for an <input> element.
     * Tip: Use the min attribute together with the max attribute to create a range of legal values.
     * Note: The max and min attributes works with the following input types: number, range, date, datetime, datetime-local, month, time and week.
     *
     * @param $min
     */
    public function SetMin($min)
    {
        parent::SetMin($min);
    }

    /**
     * The required attribute is a boolean attribute.
     * When present, it specifies that an input field must be filled out before submitting the form.
     * Note: The required attribute works with the following input types: text, search, url, tel, email, password, date pickers, number, checkbox, radio, and file.
     *
     * @param bool $required
     */
    public function SetRequired($required)
    {
        parent::SetRequired($required);
    }

    /**
     * The step attribute specifies the legal number intervals for an <input> element.
     * Example: if step="3", legal numbers could be -3, 0, 3, 6, etc.
     * Tip: The step attribute can be used together with the max and min attributes to create a range of legal values.
     * Note: The step attribute works with the following input types: number, range, date, datetime, datetime-local, month, time and week.
     *
     * @param $step
     */
    public function SetStep($step)
    {
        parent::SetStep($step);
    }

}
